package com.his.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 病人基本信息表
 * </p>
 *
 * @author Demoon Liu
 * @since 2022-02-20
 */
@Schema(description = "患者实体类")
public class Patient implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "患者id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "患者名字")
    private String name;

    @Schema(description = "患者生日")
    private LocalDateTime dateofbirth;

    @Schema(description = "患者身份证")
    private String identificationno;

    @Schema(description = "患者住址")
    private String homeaddress;

    @Schema(description = "患者电话")
    private String phoneno;

    @Schema(description = "患者性别")
    private Integer gender;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public LocalDateTime getDateofbirth() {
        return dateofbirth;
    }

    public void setDateofbirth(LocalDateTime dateofbirth) {
        this.dateofbirth = dateofbirth;
    }
    public String getIdentificationno() {
        return identificationno;
    }

    public void setIdentificationno(String identificationno) {
        this.identificationno = identificationno;
    }
    public String getHomeaddress() {
        return homeaddress;
    }

    public void setHomeaddress(String homeaddress) {
        this.homeaddress = homeaddress;
    }
    public String getPhoneno() {
        return phoneno;
    }

    public void setPhoneno(String phoneno) {
        this.phoneno = phoneno;
    }
    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "Patient{" +
                "id=" + id +
                ", name=" + name +
                ", dateofbirth=" + dateofbirth +
                ", identificationno=" + identificationno +
                ", homeaddress=" + homeaddress +
                ", phoneno=" + phoneno +
                ", gender=" + gender +
                "}";
    }
}
